package com.mysoft.gfyx.clue.remoteservice;

import com.mysoft.framework.rpc.annotation.RemoteAction;
import com.mysoft.framework.rpc.annotation.RemoteService;
import com.mysoft.gfyx.clue.controller.dto.Perm.CheckProfitRequestDto;
import com.mysoft.gfyx.clue.controller.dto.Perm.SaveProfitProvinceRequestDto;
import com.mysoft.gfyx.clue.remoteservice.dto.GetProfitProvinceDataDto;

@RemoteService(appCode = "4022", businessCode = "40220903", path = "/profitPub")
public interface RemoteProfitService {

    /**
     * NationWide 全国
     * Province 省份
     */
    enum ProvinceNumType {
        NationWide, Province,
    }

    @RemoteAction("/getProfitProvince")
    GetProfitProvinceDataDto getProfitProvince();

    @RemoteAction("/saveProfitProvince")
    void saveProfitProvince(SaveProfitProvinceRequestDto dto);

    @RemoteAction("/checkProfitEffectByCode")
    boolean checkProfitEffectByCode(CheckProfitRequestDto dto);

    @RemoteAction("/pushProfit")
    boolean pushProfit() throws Exception;

    @RemoteAction("/pullYcgMemberProfit")
    boolean pullYcgMemberProfit() throws Exception;
}
